snakegame: main.o game_manager.o doubles.o game.o snake.o snake_controller.o pve_game.o
	g++ -o snakegame main.o game_manager.o doubles.o game.o snake.o snake_controller.o pve_game.o -lncurses

main.o: main.cpp
	g++ -I. -c main.cpp

game_manager.o: game_manager.cpp game_manager.h
	g++ -I. -c game_manager.cpp

doubles.o: doubles.cpp doubles.h snake.h snake_controller.h
	g++ -I. -c doubles.cpp

game.o: game.cpp game.h snake.h
	g++ -I. -c game.cpp

snake.o: snake.cpp snake.h
	g++ -I. -c snake.cpp

snake_controller.o: snake_controller.cpp snake_controller.h snake.h
	g++ -I. -c snake_controller.cpp

pve_game.o: pve_game.cpp pve_game.h snake.h
	g++ -I. -c pve_game.cpp

clean:
	rm *.o 
	rm snakegame
	rm record.dat
	rm record_double.dat
	rm record_pve.dat
